package com.twschool.practice;

public enum Direction {
    N{
        @Override
        public Direction leftTurn() {
            return W;
        }

        @Override
        public Direction rightTurn() {
            return E;
        }
    },W{
        @Override
        public Direction leftTurn() {
            return S;
        }

        @Override
        public Direction rightTurn() {
            return N;
        }
    },S{
        @Override
        public Direction leftTurn() {
            return E;
        }

        @Override
        public Direction rightTurn() {
            return W;
        }
    },E{
        @Override
        public Direction leftTurn() {
            return N;
        }

        @Override
        public Direction rightTurn() {
            return S;
        }
    };
    public abstract Direction leftTurn();
    public abstract Direction rightTurn();


}

